import request from '@/utils/request'

// 查询单证业务类型列表
export function listBillBusinessType(query) {
  return request({
    url: '/billsdecl/billBusinessType/list',
    method: 'get',
    params: query
  })
}

// 查询集装箱备案列表
export function findBusinessTypeList(data) {
  return request({
    url: '/billsdecl/billBusinessType/findList',
    method: 'post',
    data: data,
  })
}


// 查询单证业务类型详细
export function getBillBusinessType(id) {
  return request({
    url: '/billsdecl/billBusinessType/getInfo/' + id,
    method: 'get'
  })
}

// 新增单证业务类型
export function addBillBusinessType(data) {
  return request({
    url: '/billsdecl/billBusinessType/add',
    method: 'post',
    data: data
  })
}

// 修改单证业务类型
export function updateBillBusinessType(data) {
  return request({
    url: '/billsdecl/billBusinessType/edit',
    method: 'post',
    data: data
  })
}

// 删除单证业务类型
export function delBillBusinessType(id) {
  return request({
    url: '/billsdecl/billBusinessType/remove/' + id,
    method: 'get'
  })
}

// 导出单证业务类型
export function exportBillBusinessType(query) {
  return request({
    url: '/billsdecl/billBusinessType/export',
    method: 'get',
    params: query
  })
}
